<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
        "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
<f:view contentType="text/html">
    <h:head>
        <title><ui:insert name="title"></ui:insert></title>
        <ui:insert name="header">
            <ui:include src="header.xhtml"/>
            <ui:include src="sessionTimeOut.xhtml"/>
        </ui:insert>
        <script type="text/javascript">
            function validarInit() {
                if (jQuery.isFunction(window.initForm)) {
                    initForm();
                }
            }
        </script>
    </h:head>
    <f:metadata>
        <f:viewParam name="token" value="#{viewBean.token}" />
        <f:event type="preRenderView" listener="#{viewBean.execute}" />
    </f:metadata>
    <h:body onload="validarInit();">
        <p:growl id="messages" widgetVar="wMessages" showDetail="true"
                 life="10000" sticky="false" autoUpdate="false" globalOnly="true">
        </p:growl>

        <h:panelGrid cellspacing="0" cellpadding="0" styleClass="centered">
            <h:panelGrid columns="1" style="width:100%;">
                <h:form>
                    <h:panelGroup styleClass="centered">
                        <h:panelGrid columns="2" style="width: 100%;" styleClass="centered">
                            <h:graphicImage library="images" name="Logo_PRIOX.png"
                                            styleClass="banner ui-toolbar-group-left"/>
                            <h:panelGroup styleClass="header_welcome ui-toolbar-group-rigth">

                            </h:panelGroup>

                        </h:panelGrid>
                    </h:panelGroup>
                 </h:form>
            </h:panelGrid>
            <h:panelGrid cellspacing="0" width="100%" cellpadding="0" styleClass="content centered">
                <h:panelGroup>
                    <h:panelGrid cellspacing="0" cellpadding="0" styleClass="content"  width="100%">
                        <ui:insert name="content"/>
                        <p:ajaxStatus onstart="wvStatusDialog.show();" onsuccess="wvStatusDialog.hide();"/>

                        <p:dialog modal="true" id="statusDialog" widgetVar="wvStatusDialog" showHeader="false"
                                  resizable="false" draggable="false" closable="false" position="center"
                                  appendToBody="true">
                            <p:graphicImage value="../resources/images/ajaxloadingbar.gif"/>
                        </p:dialog>
                    </h:panelGrid>
                    <ui:insert name="footer">
                        <!--ui:include src="footer.xhtml"/-->
                    </ui:insert>
                </h:panelGroup>
            </h:panelGrid>
        </h:panelGrid>
        <ui:insert name="modal"/>
    </h:body>
</f:view>
</html>